package com.ruoyi.inventory.domain;

import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.inventory.domain.dto.InventoryItemDTO;

/**
 * 盘点对象 t_inv_session
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TInvSession extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;


    /** 盘点人ID */
    @Excel(name = "盘点人ID")
    private Long checkerId;

    /** 逻辑删除:0未删 1已删 */
    @Excel(name = "逻辑删除:0未删 1已删")
    private Integer isDelete;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 盘点单号 */
    @Excel(name = "盘点单号")
    private String sessionNo;

    /** 计划盘点日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "计划盘点日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date plannedDate;

    /** 实际盘点日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "实际盘点日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date actualDate;

    /** 盘点状态 */
    @Excel(name = "盘点状态")
    private String status;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /** 盘点人姓名 */
    @Excel(name = "盘点人姓名")
    private String inventoryUser;

    /** 盘点明细列表 */
    private List<InventoryItemDTO> partList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setCheckerId(Long checkerId) 
    {
        this.checkerId = checkerId;
    }

    public Long getCheckerId() 
    {
        return checkerId;
    }

    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setSessionNo(String sessionNo) 
    {
        this.sessionNo = sessionNo;
    }

    public String getSessionNo() 
    {
        return sessionNo;
    }

    public void setPlannedDate(Date plannedDate) 
    {
        this.plannedDate = plannedDate;
    }

    public Date getPlannedDate() 
    {
        return plannedDate;
    }

    public void setActualDate(Date actualDate) 
    {
        this.actualDate = actualDate;
    }

    public Date getActualDate() 
    {
        return actualDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setWarehouseCode(String warehouseCode) 
    {
        this.warehouseCode = warehouseCode;
    }

    public String getWarehouseCode() 
    {
        return warehouseCode;
    }

    public void setInventoryUser(String inventoryUser) 
    {
        this.inventoryUser = inventoryUser;
    }

    public String getInventoryUser() 
    {
        return inventoryUser;
    }

    public void setPartList(List<InventoryItemDTO> partList) 
    {
        this.partList = partList;
    }

    public List<InventoryItemDTO> getPartList() 
    {
        return partList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sessionNo", getSessionNo())
            .append("warehouseCode", getWarehouseCode())
            .append("checkerId", getCheckerId())
            .append("inventoryUser", getInventoryUser())
            .append("plannedDate", getPlannedDate())
            .append("actualDate", getActualDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("isDelete", getIsDelete())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
